package br.com.tests;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

import br.com.dao.DAO;
import br.com.models.Teacher;

public class UnitTestTeacher {
	public static Teacher teacher;
	public static DAO<Teacher> dao;
	
	@BeforeClass
	public static void beforeClass() throws Exception {
		teacher = new Teacher();
		dao = new DAO<Teacher>();
	}
	
	@Test 
	public void TestName() {
		Assert.assertTrue(teacher.isValidName(""));
	}
	
	@Test 
	public void TestFormatEmail() {
		Assert.assertTrue(teacher.isValidFormatEmail("www/.gmail.com"));
	}
	
	@Test 
	public void TestFormatZipCode() {
		Assert.assertTrue(teacher.isValidFormatZipCode("31525290"));
	}
	
	@Test 
	public void TestSiapeIsValid() {
		Assert.assertTrue(teacher.isValidSiape("123456789"));
	}
	
	@Test 
	public void TestPasswordIsValid () {
		Assert.assertTrue(teacher.isValidPassword("123ab"));	
	}
	
	@Test
	public void TestNumber () {
		Assert.assertTrue(teacher.isValidNumber("123a45"));	
	}
	
	@Test 
	public void TestCPF() {
		Assert.assertTrue(teacher.isValidCPF("091656666-82"));
	}
}
